import { randomChoice } from "../core/utils/utils";

const hints = [
  '每五年都将会有大事件发生',
  '遇到无法战胜的生灵时，可以去强化法宝、提升技能熟练度',
  '可以先在没有生灵的地方放置陷阱，战斗时将生灵引入陷阱来降低战斗力'
];

const hintsShown = [];

export function getRandomHint(){
  let maxTries = 100 * hints.length;

  while(maxTries-- > 0){
    const hint = randomChoice(hints);
    if(!hintsShown.includes(hint)){
      hintsShown.push(hint);
      return hint;
    }
  }

  return randomChoice(hints);
}